package com.yhd.cloudmanage.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * 兴趣表Entity类
 *
 * @author liyan
 * @since 2020-06-11 15:54:29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("interest")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value="Interest对象", description="兴趣表")
public class Interest implements Serializable {

    private static final long serialVersionUID=1L;


    @ApiModelProperty(value = "自增ID")
        @TableId(value = "interest_id", type = IdType.AUTO)
                    private Integer interestId;

    @ApiModelProperty(value = "创建人ID")
    @TableField("user_id")
            private Integer userId;

    @ApiModelProperty(value = "兴趣名称")
    @TableField("interest_name")
            private String interestName;

    @ApiModelProperty(value = "描述信息")
    @TableField("description")
            private String description;

    @ApiModelProperty(value = "模板类型。1 月 2 季 3 年")
    @TableField("template_type")
            private Boolean templateType;

    @ApiModelProperty(value = "是否完成。1：是 2：否")
    @TableField("is_done")
            private Boolean isDone;

    @ApiModelProperty(value = "完成度")
    @TableField("complete_percent")
            private Float completePercent;

    @ApiModelProperty(value = "截止时间")
    @TableField("break_time")
            private LocalDateTime breakTime;

    @ApiModelProperty(value = "逻辑删除。0：删除。1：未删除")
    @TableField("delete_flag")
            private Boolean deleteFlag;

    @ApiModelProperty(value = "创建人ID")
    @TableField("create_by_id")
            private Integer createById;

    @ApiModelProperty(value = "更新人ID")
    @TableField("update_by_id")
            private Integer updateById;

    @TableField("create_time")
            private LocalDateTime createTime;

    @TableField("update_time")
            private LocalDateTime updateTime;

    @ApiModelProperty(value = "是否有效。1：有效，2：失效")
    @TableField("is_valid")
            private Integer isValid;
}
